2024-03-13

Guiding Question

  • What factors in a country lead to happiness?
  • Our group decided to look at factors such as
    • Geography
    • Economics
    • Health

The Data

  • The happiness data was pulled from the World Happiness Report 2023 Source

  • Additional country statistics were merged to the dataset from the following Kaggle dataset

  • Finally the countrycode package was used to import the continent and the iso country code

  • The dataset contains 133 countries

    • Kosovo, Hong Kong, State of Palestine, Taiwan, and Palestine were dropped because from the dataset because the country statistics dataset did not have values for them

    • The World Happiness Report did not survey every country in the world, so we do not have all countries

2023 World Happiness Score for 133 Countries

  • The Western World appears to have the most happiness
  • The Nordic Countries (Finland, Norway, Sweden, and Denmark) have the most happiness
  • African countries are the most unhappy, followed by countries in the middle east
  • Surprisingly Ukraine is not incredibly unhappy

Nikki’s Slide 1

Nikki’s Slide 2

Multiple Regression Predicting Happiness Score

Dependent variable:
happiness.score
Social support 5.818***
(0.416)
Life choice freedom 2.153***
(0.504)
Corruption perception -1.405***
(0.282)
Constant 0.216
(0.492)
Observations 133
R2 0.800
Adjusted R2 0.795
Residual Std. Error 0.521 (df = 129)
F Statistic 171.676*** (df = 3; 129)
Note: p<0.1; p<0.05; p<0.01

Shiny APP

Shiny applications not supported in static R Markdown documents

Summary

  • Created a Shiny app to visualize the relationship between happiness score and other variables